package cn.tedu.submarine;

import javax.swing.*;

public class MineSubmarine extends SeaObject implements EnemyLife{
    public MineSubmarine(){
        super(63,19);
    }
    public void move(){
        x+=speed;
    }
    public ImageIcon getImage(){
        return Images.minesubm;
    }
    public Mine shootMine(){
        //x:水雷潜艇的x+水雷潜艇的宽
        //y:水雷潜艇的y-11

        return new Mine(this.x+this.width,this.y-11);
    }
    public int getLife(){
        return 1;
    }
}
